package com.lanou.utp.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author MaQingYun
 */
@Data
public class Approval extends BaseEntity implements Serializable {

    private Long id;/*主键*/
    private Long studentId;/*学生id*/
    private Long taskId;/*任务id*/
    private Long type;/*请假类型（0病假 , 1事假）*/
    private String reason;/*请假理由*/

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;/*开始时间*/

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date overTime;/*结束时间*/
    private String approvalName;/*审核人姓名*/
    private Date approvalTime;/*审核时间*/
    private String photo;/*申请资料照片*/

    private String name;
    private String tel;
    private String clazz;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;/*创建时间*/

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;/*更新时间*/

    private Integer status;/*状态*/



}
